export * from './storage'
export * from '../i18'
export function toast(title) {
	uni.showToast({
		icon: 'none',
		title: title,
		duration: 2500

	})
}

/**
 * @param {Object} data
 * @param {Object} showToast 仅app,h5支持
 * 设置系统剪贴板的内容
 */
export function copy(data, showToast=true) {
	uni.setClipboardData({
		data,
		showToast,
		success: (e) => {}

	})
}

/**
 * @param {Object} success
 * 获取系统剪贴板内容
 */
export function paste(success) {
	uni.getClipboardData({
		success
	})
}